import request from '@/utils/request'

// 查询问题受理列表
export function getCaseAssignedList(query) {
  return request({
    url: '/assigned/cawCaseAssigned/list',
    method: 'get',
    params: query
  })
}
// 查询问题登记详情
export function getCaseAssignedDetail(id) {
  return request({
    url: '/assigned/cawCaseAssigned/'+id,
    method: 'get',
  })
}

// 新增问题登记
export function addCawCaseAssigned(data) {
  return request({
    url: '/assigned/cawCaseAssigned',
    method: 'post',
    data: data
  })
}

// 修改问题登记
export function updateCawCaseAssigned(data) {
  return request({
    url: '/assigned/cawCaseAssigned',
    method: 'put',
    data: data
  })
}

// 删除问题登记
export function deleteCawCaseAssigned(data) {
  return request({
    url: '/assigned/cawCaseAssigned',
    method: 'delete',
    data: data
  })
}

// 导出问题登记列表
export function exportCawCaseAssigned(data) {
  return request({
    url: '/assigned/cawCaseAssigned/export',
    method: 'post',
    data: data
  })
}
